<!--#
    var catalog = platform.findCatalogById(numberUtil.toLong(parameter.id));
-->
<!--#layout("common/page.html",{"jsBase":"/js/","title":"catalog.title","curCatalog":catalog}){  -->
<div class="doc-container" id="doc-container">
    <div class="container-fixed">
        <div class="col-content">
            <div class="inner">
                <article class="article-list bloglist" id="LAY_bloglist" >
                    <!--# var limit = parameter.limit!10;  -->
                    <layui:cmsArticleList var="articlePage" tagValue="${parameter.tag}" catalogId="${ stringUtil.toString(catalog.id!)}" orderby="top desc,show_time desc" page="${parameter.page!'1'}" pageSize="${ stringUtil.toString(limit)}">
                        <!--#
                        for(article in articlePage.list) {
                        -->
                        <section class="article-item zoomIn article">
                            <!--# if(article.top == true) { -->
                            <div class="fc-flag">置顶</div>
                            <!--# } -->
                            <h5 class="title">
                                <!--# if(article.yuanchuang! == true) { -->
                                <span class="fc-blue">【原创】</span>
                                <!--# }-->
                                <a href="${ctxPath}/article.do?id=${article.id}">${article.title}</a>
                            </h5>
                            <div class="time">
                                <span class="day">${article.showTime,dateFormat="dd"}</span>
                                <span class="month fs-18">${article.showTime,dateFormat="MM"}<span class="fs-14">月</span></span>
                                <span class="year fs-18">${article.showTime,dateFormat="yyyy"}</span>
                            </div>
                            <div class="content">
                                <a href="${ctxPath}/article.do?id=${article.id}" class="cover img-light">
                                    <layui:show_image attachmentId="${article.imageId}" />
                                </a>
                                ${article.description}
                            </div>
                            <div class="read-more">
                                <a href="${ctxPath}/article.do?id=${article.id}" class="fc-black f-fwb">继续阅读</a>
                            </div>
                            <aside class="f-oh footer">
                                <!--# for(tagValue in util.split(article.tagValue,",")) { -->
                                <div class="f-fl tags">
                                    <span class="fa fa-tags fs-16"></span>
                                    <a class="tag" href="${catalog.accessUrl + '?tag=' + tagValue}">${platform.findDict("article_tag",tagValue).name}</a>
                                </div>
                                <!--# } -->
                                <div class="f-fr">
                                    <span class="read">
                                        <i class="fa fa-eye fs-16"></i>
                                        <i class="num">${article.hot}</i>
                                    </span>
                                    <span class="ml20 layui-hide">
                                        <i class="fa fa-comments fs-16"></i>
                                        <a href="javascript:void(0)" class="num fc-grey">1</a>
                                    </span>
                                </div>
                            </aside>
                        </section>
                        <!--#} -->
                        <!--#if (articlePage.totalPage > 1) {  -->
                        <div id="page" class="align-center"></div>
                        <script>
                            layui.use(['laypage'],function() {
                                var laypage = layui.laypage;
                                //完整功能
                                  laypage.render({
                                    elem: 'page'
                                    ,count: ${articlePage.totalRow!0}
                                    ,curr:${parameter.page!1}
                                    ,limit:${limit}
                                    ,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
                                    ,jump: function(obj,first){
                                      //首次不执行
                                      if(!first){
                                          if (obj.limit == '${limit}') {
                                              document.location.href="${catalog.accessUrl}?${util.parameters()}&page=" + obj.curr;
                                          } else {
                                              document.location.href="${catalog.accessUrl}?${util.parameters()}&page=" + obj.curr + "&limit=" + obj.limit;
                                          }
                                      }
                                    }
                                  });
                            })
                        </script>
                            <!--# }  -->
                    </layui:cmsArticleList>
                </article>
            </div>
        </div>
        <div class="col-other">
            <!--#include("common/include/common.right.html",{"curCatalog":catalog}) {}  -->
        </div>
    </div>
</div>

<script src="${ctxPath}${tpl}/js/plugins/nprogress.js"></script>
<script>NProgress.start();</script>
<script src="${ctxPath}${tpl}/js/article.js"></script>
<script>
    window.onload = function () {
        NProgress.done();
    };
</script>
<!--#}  -->